package com.example.chenz.logdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private static final String activity_Tag = "LogDemo!";
    private Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        button = (Button)findViewById(R.id.button1);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.v(MainActivity.activity_Tag,"This is verbose.");
                Log.i(MainActivity.activity_Tag,"This is Information.");
                Log.e(MainActivity.activity_Tag,"This is Error.");
                Log.d(MainActivity.activity_Tag,"This is Debug.");
                Log.w(MainActivity.activity_Tag,"This is Warning");
            }
        });
    }
}
